﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Mis Inscripciones
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  <script src="../../Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-ui-1.8.13.custom.min.js" type="text/javascript"></script>
    <link href="../../Content/jquery.modaldialog.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery.modaldialog.js" type="text/javascript"></script>
    <script>
        $(function () {

                $(".delete").click(function () {                
                
                      
                var c = $(this).attr("name");   
                $.getJSON("<%=Url.Action("eliminarInscripcion") %>"+"/"+"?ID="+c, null,
                    
                    function(Data){
                        if(Data == "ok")
                        {
                            window.location.reload();
                        }
                        else
                        {
                            $.modaldialog.error("No se pudo eliminar");
                        }


	                });
            });
        });
	</script>

    <h2>Mis Inscripciones</h2>



    <br />
    <br />

    <%=TempData["tutorias"] %>
        

</asp:Content>
